import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import axios from 'axios'
import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';
import '@/assets/less/index.less'
import '@/assets/less/common.less'
import '@/assets/less/home.less'
import '@/assets/less/reset.less'
//按需引入 我直接全部引入
//import { Button } from 'element-ui'
Vue.use(ElementUI);
//*********************************
//Vue.use(Button)
//*********************************

import * as API from '@/api/data'
import '@/api/mock'
Vue.config.productionTip = false
new Vue({
  router,
  store,
  //全局事件总线
  beforeCreate() {
    Vue.prototype.$bus = this
    Vue.prototype.$http = axios
    Vue.prototype.$API = API
  },
  render: h => h(App),
}).$mount('#app')
